<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" 
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns:jsp="http://java.sun.com/JSP/Page"
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:f="http://java.sun.com/jsf/core"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:c="http://java.sun.com/jstl/core"
  xmlns:ch="http://sourceforge.net/projects/jsf-comp"
  xmlns:fn="http://java.sun.com/jsp/jstl/functions"	
  xmlns:t="http://myfaces.apache.org/tomahawk"
  xmlns:p="http://primefaces.org/ui"
  xmlns:st="http://stefanini.com/tags">
 
  <h:head>
  	<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
	<meta name="GENERATOR" content="IBM Software Development Platform"/>
	<meta http-equiv="content-language" content="es" />
	<meta name="lang" content="es" />
	<meta http-equiv="Content-Style-Type" content="text/css"/>
	<meta http-equiv="Cache-Control" content="no-cache"/>	
	<meta http-equiv="Cache-Control" content="no-store"/>	
	<meta http-equiv="Cache-Control" content="must-revalidate"/>
	<meta http-equiv="Pragma" content="no-cache"/>
	<meta http-equiv="Expires" content="0"/>
	
	<link rel="stylesheet" type="text/css" href="${request.contextPath}/theme/default.css" title="Style"/>
	<link rel="stylesheet" type="text/css" href="${request.contextPath}/theme/table.css" title="Style"/>
	<link rel="stylesheet" type="text/css" href="${request.contextPath}/theme/jquery.checkboxtree.min.css" title="Style"/>
	<link type="text/css" rel="stylesheet" href="${request.contextPath}/theme/primefaces/redmond/skin.css"/>
	<script type="text/javascript" src="${request.contextPath}/script/menu/Redirecciones.js"></script>
	<script type="text/javascript" src="${request.contextPath}/script/util.js"></script>
		
			  
	<script type="text/javascript" src="${request.contextPath}/script/timePicker.js"></script>
    <ui:insert name="head">
    	<title>Asesor 360</title>
    </ui:insert>     
 
	<script language="javascript">	
		function pulsar(e) {
	        tecla=(document.all) ? e.keyCode : e.which;
	      if(tecla==13) return false;
	    }
		function cerrar(){
			
			var ventana = window.self;
			ventana.opener = window.self;
			ventana.close();
		}
 	
		//<![CDATA[
				function limitarCajaPrincipal(field, maxlimit) {
					try{
						if (field.value.length > maxlimit) {
							field.value = field.value.substring(0, maxlimit);
						}
					}catch(ex){
					}
	            }
	        //]]>
	</script>  
<style type="text/css">
		.styleMenuModelMain ul.ui-menu-child{
	  		white-space: nowrap;
 	  		width: auto !important;
	  	}
	  	
	  	.panelgridInColumn td {
			border-style: none !important;
		}
		.stylePPanelGridBorder tr, .stylePPanelGridBorder td{
			border:0 !important;
		}
		.hide-column-header-names table thead tr {
		    display: none;
		}
		
		.styleDataTableWrapNormal thead th, .styleDataTableWrapNormal tfoot td, .styleDataTableWrapNormal tbody td{
			white-space: pre-line;
		} 
		.styleDataTableWrapEspecial thead th, .styleDataTableWrapEspecial tfoot td{
			white-space: pre-line;
			padding: 4px 4px;
		}
		.styleDataTableWrapEspecial tbody td{
			white-space: pre-line;
			padding: 0px;
		}
		.styleDataTableWrapExpan thead th{
			padding: 0px 0px;
		}
		.styleDataTableWrapExpan tbody td, .styleDataTableWrapExpan tfoot td{
			white-space: pre-line;
			padding: 4px 1px;
		}
		
		.stylePanelColumnsPadre tbody td {
			    vertical-align: top;
		}
		.stylePanelColumnsHijo tbody td {
		    vertical-align: inherit;
		}
		.pangelGridCenter{
	  		margin: 0 auto;
	  	}
	</style> 
  </h:head> 
  <body class="fondo" onkeypress="return pulsar(event)" >
	<f:view>	
			<h:form styleClass="form" id="formPrincipal">
				<p:idleMonitor timeout="#{bpmsgs.MSG_IDLE_MINUTOS*60000}" onidle="idleConfirmDialog2.show()" />
				<p:confirmDialog id="confirmDialogIdle" header="#{bpmsgs.MSG_IDLE_CABECERA}"
					message="#{bpmsgs.MSG_IDLE_CUERPO}"
					severity="alert" widgetVar="idleConfirmDialog2">
					<p:commandButton id="confirm" value="Ok" onclick="idleConfirmDialog2.hide()" />
					<p:commandButton id="Logout" value="LogMeOut" oncomplete="idleConfirmDialog2.hide()"
						actionListener="#{loginController.cerrarSession}" />
				</p:confirmDialog>
				<t:div style="text-align:center;">
					<table align="center" border="0" cellpadding="0" cellspacing="0" style="width: 1000px;background-color:#FFFFFF;border: 1px solid #ACBECE;">
						<tr>
							<td align="left" valign="top"  id="Cabecera">			
							<table width="100%" cellpadding="0" cellspacing="0" border="0">
							<tr>
							<td><a href="${request.contextPath}/Principal.xhtml" style="color:white; text-decoration: none">
									<h:outputText value="Página Inicio"/>
								</a></td>
							<td align="right">
<!-- 							<h:selectOneMenu styleClass="combo" action="#{loginController.changeMenuTipo}" value="#{loginController.loginModel.codTipoEjecutivo}"  -->
<!-- 								valueChangeListener="#{loginController.changeMenuTipo}"> -->
<!-- 										<f:selectItems value="#{loginController.loginModel.listaTipoEjecutivos}"/> -->
<!-- 										<p:ajax event="change" listener="#{loginController.changeMenuTipo}" update=":formPrincipal"/> -->
<!-- 							</h:selectOneMenu> -->
							</td>
							</tr>
							</table>													
								
							</td>
						</tr>
						<tr>
							<td align="left" valign="top" style="background-color: #E8E8E8;">	
								<table cellpadding="8" width="100%" bgcolor="white">
									<tr>
										<td align="left">											
											<h:graphicImage value="/imagenes/banner/BBVASistemaAsesoramientoFinanciero.png"/>										
										</td>
										<td align="right">											
											<h:graphicImage value="/imagenes/banner/bannerBBVA3TWO.jpg"/>
										</td>
									</tr>
								</table>										
							</td>
						</tr>
						<tr>
							<td align="left">
								<p:toolbar styleClass="toolBar">
									<p:toolbarGroup align="left" style="height: 15px;">
										<h:outputText value="Gestor: #{loginController.loginModel.nombreEjecutivo}"/>
										<p:separator />
										<h:outputText value="Fecha: #{loginController.loginModel.fecha}"/>
										<p:separator />
										<h:outputText value="Información a Fecha: #{loginController.loginModel.fechaInformacion}"/>
									</p:toolbarGroup>
									<p:toolbarGroup align="right">
										<p:commandLink actionListener="#{loginController.cerrarSession}" value="Cerrar Sesión"></p:commandLink>
									</p:toolbarGroup>
								</p:toolbar>															
								<input type="hidden" id="jscook_action"	name="jscook_action" />		
							</td>
						</tr>
						<tr>
							<td>
								<p:menubar model="#{loginController.rootOpcionMenu}" autoSubmenuDisplay="true" styleClass="styleMenuModelMain" effect="drop"/>
							</td>
						</tr>
						<tr>
							<td valign="top">
								<ui:insert name="tituloarea"/>
							</td>
						</tr>
						<tr>
							<td>	
								<p:toolbar>
								  <p:toolbarGroup align="left" style="margin-top: 2px; height: 15px;">
								  	<ui:insert name="titulopagina"/>	
								  </p:toolbarGroup>
								  <p:toolbarGroup align="right">
									<ui:insert name="agregaIconoExcelRe">
	                                      <h:commandButton id="idExpXls" styleClass="icoExcel" action="#{exportarModel.exportarReporteListadoXls}" value="">
	                                       	  <p:tooltip for="idExpXls" value="Exportar Excel" showEffect="fade" hideEffect="fade" /> 
	                                      </h:commandButton> 
	                                </ui:insert>      
                                    <ui:insert name="agregaIconoPDFRe">
                                          <h:commandButton id="idExpPdf" styleClass="icoPdf" action="#{exportarModel.exportarReporteListadoPdf}" value="" />
                                          <p:tooltip for="idExpPdf" value="Exportar PDF" showEffect="fade" hideEffect="fade" />
                                    </ui:insert>
         							<ui:insert name="agregaIconoExcelReTotalizados">
                                      <h:commandButton id="idExpXlsTotalizados" styleClass="icoExcel" action="#{exportarModel.exportarProductoClienteTotalizadoXls}" value=""/>
									  <p:tooltip for="idExpXlsTotalizados" value="Exportar Excel Totalizados" showEffect="fade" hideEffect="fade" /> 
                                    </ui:insert>
                                    <ui:insert name="agregaIconoPDFReTotalizados">
                                          <h:commandButton id="idExpPdfTotalizados" styleClass="icoPdf" action="#{exportarModel.exportarProductoClienteTotalizadoPdf}" value=""/>
                                          <p:tooltip for="idExpPdfTotalizados" value="Exportar PDF Totalizados" showEffect="fade" hideEffect="fade" />
                                    </ui:insert>
								  </p:toolbarGroup>
								</p:toolbar>
							</td>
						</tr>
						<tr>
							<td align="left" style="background-color: White;padding:10px 10px" valign="top">								
							   <ui:insert name="bodyarea"/>
							</td>
						</tr>
						<tr>
							<td align="center" valign="top" id="Pie" class="dr-pnl-h rich-panel-header">
								BBVA Banco Continental ©Copyright -Todos los Derechos Reservados.
							</td>
						</tr>
					</table>
				</t:div>
			</h:form>
			
			<ui:insert name="extraarea"/>
		
		</f:view>
	</body>
 
</html>